﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="Product.aspx.cs" Inherits="Photocopy.Product" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title></title>
    	    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="page-header">
		<div class="row">
            <div class="col-md-6 col-sm-12">
                <h3>Sản phẩm</h3>
            </div>
            <div class="col-md-6 col-sm-12">
                <div class="sort pull-right">
                    <span class="label label-success">Sort</span>
                    <asp:DropDownList ID="DropDownList1" CssClass="dropsort" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                        <asp:ListItem>Sort by ID</asp:ListItem>
                        <asp:ListItem>Sort by Name</asp:ListItem>
                        <asp:ListItem>Sort by Company</asp:ListItem>
                        <asp:ListItem>Sort by Price</asp:ListItem>
                    </asp:DropDownList>
                </div>
             </div>
		</div>
        
	</div>
	
    <div class="row">
    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
        <ItemTemplate>
			<div class="col-lg-3 col-md-6 col-sm-12">
				<div class="tile" id="thumbnail" runat="server">
                    
					<asp:LinkButton ID="LinkImgToDetail1" runat="server" CommandName="GetProductDetail1"><img class="img-responsive" src='\Images\<%#Eval("HinhAnh") %>' alt="<%#Eval("TenSanPham") %>" style="width:250px;height:221px;"></asp:LinkButton>
					<div class="footer">
						<div class="tensanpham">
                            <h4><asp:LinkButton ID="LinkToDetail1" runat="server" CommandName="GetProductDetail1"><%#Eval("TenSanPham") %></asp:LinkButton></h4>
                            <asp:Label ID="lbSanphamID1" runat="server" Visible="false" Text='<%#Eval("SanPhamID") %>'></asp:Label>
						</div>
						<span>by <%#Eval("NhaSanXuat") %></span>
						<div class="price-label"><%#Eval("DonGia","{0:0,000}").Replace(",",".") %> VNĐ</div>
						<div class="tools">
							<div>
								<span class="rating"><span class="star"></span><span class="star"></span><span class="star"></span><span class="star"></span><span class="star"></span></span>
							</div>
                                     
						</div>
					</div>
				</div>
			</div>
		</ItemTemplate>
	</asp:Repeater>
	</div>

    <%--<div class="row display-none" id="rowHotProduct" runat="server">
    <asp:Repeater ID="Repeater2" runat="server" OnItemCommand="Repeater2_ItemCommand">
        <ItemTemplate>
			<div class="col-lg-4 col-md-6 col-sm-12">
				<div class="thumbnail tile offer offer-danger">
                    <div class="shape">
					    <div class="shape-text">
						    Hot								
					    </div>
				    </div>
					<asp:LinkButton ID="LinkImgToDetail2" runat="server" CommandName="GetProductDetail2"><img class="img-responsive" src='\Images\<%#Eval("HinhAnh") %>' alt="<%#Eval("TenSanPham") %>" style="width:250px;height:auto;"></asp:LinkButton>
					<div class="footer">
						<div class="tensanpham">
                            <h4><asp:LinkButton ID="LinkToDetail2" runat="server" CommandName="GetProductDetail2"><%#Eval("TenSanPham") %></asp:LinkButton></h4>
                            <asp:Label ID="lbSanphamID2" runat="server" Visible="false" Text='<%#Eval("SanPhamID") %>'></asp:Label>
						</div>
						<span>by <%#Eval("NhaSanXuat") %></span>
						<div class="price-label"><%#Eval("DonGia","{0:0,000}").Replace(",",".") %> VNĐ</div>
						<div class="tools">
							<div>
								<span class="rating"><span class="star"></span><span class="star"></span><span class="star"></span><span class="star"></span><span class="star"></span></span>
							</div>
										
                            <asp:Button id="btnAddcard" class="btn btn-info add-cart-btn-1" runat="server" CommandName="addToCard" Text="Add To Cart"/>
                                      
						</div>
					</div>
				</div>
			</div>
		</ItemTemplate>
	</asp:Repeater>
			
	</div>--%>

    <div class="page">
        <cc1:CollectionPager ID="CollectionPager1"
            FirstText="Đầu"
            BackText="« Trước &amp;nbsp;"
            LabelText=""
            LastText="Cuối"
            NextText="&amp;nbsp; Sau  »"
            ShowFirstLast="False"
            SliderSize="5" 
            runat="server" BackNextLinkSeparator="" BackNextLocation="Split"
            PageNumbersDisplay="Numbers" ResultsLocation="None"
            BackNextDisplay="Buttons" BackNextButtonStyle="" BackNextStyle="" MaxPages="12" SectionPadding="10">
        </cc1:CollectionPager>
    </div>

</asp:Content>



